import React from 'react';
import { observer } from 'mobx-react';
import {WeaTextarea } from 'ecCom';

interface Props {
    value?: string;
    valueSpan?:string;
    viewAttr:string;
    onBlur: (string) => void;
}

export default observer((props: Props) => {
    const { value,onBlur,viewAttr } = props;
    return (
        <div  style={{float:'left'}}>
        <WeaTextarea
        value={value}
        viewAttr={viewAttr}
        minRows={2}
        maxRows={10}
        onBlur={onBlur}
    />
        </div>
    )
});